package ca.magex.gps.entity.impl;

import java.util.Date;

import ca.magex.gps.entity.Lap;

public class LapImpl extends TrackpointContainerImpl implements Lap {

	private double totalTime;
	private double distance;
	private double maxSpeed;
	
	public LapImpl() {
		totalTime = 0;
		distance = 0;
		maxSpeed = 0;
	}
	
	public double getDistance() {
		return distance;
	}
	
	public void setDistance(float distance) {
		this.distance = distance;
	}
	
	public double getMaxSpeed() {
		return maxSpeed;
	}
	
	public void setMaxSpeed(float maxSpeed) {
		this.maxSpeed = maxSpeed;
	}
	
	public Date getStart() {
		return getTrackpoints().get(0).getTime();
	}
	
	public double getTotalTime() {
		return totalTime;
	}
	
	public void setTotalTime(float totalTime) {
		this.totalTime = totalTime;
	}

}
